﻿// See https://aka.ms/new-console-template for more information

using System.Diagnostics;
using System.Text.RegularExpressions;
using DevHub.Lib;

var sw = new Stopwatch();
sw.Start();

Console.WriteLine("Hello, World!");

#pragma warning disable CS0618 // 类型或成员已过时
Console.WriteLine(Translate.TranslateFromYOUDAO("main","AUTO","AUTO"));
#pragma warning restore CS0618 // 类型或成员已过时


var regex = new Regex("(.{3})",RegexOptions.RightToLeft);
Console.WriteLine(regex.Replace("4210421", match => " "+match.Value));

sw.Stop();
var ts = sw.Elapsed;
Console.WriteLine(ts.Microseconds+"ms");